+Sat Feb 9 00:16:31 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image):
+ XCopyArea with subwindow_mode = IncludeInferiors.
+ (#70999)
+
+ * demos/testpixbuf-save.c (configure_cb): Fix a minor
+ memory management problem.
+
Fri Feb 8 20:24:58 2002 Owen Taylor <otaylor@redhat.com>
+Sat Feb 9 00:16:31 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image):
+ XCopyArea with subwindow_mode = IncludeInferiors.
+ (#70999)
+
+ * demos/testpixbuf-save.c (configure_cb): Fix a minor
+ memory management problem.
+
Fri Feb 8 20:24:58 2002 Owen Taylor <otaylor@redhat.com>
+Sat Feb 9 00:16:31 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image):
+ XCopyArea with subwindow_mode = IncludeInferiors.
+ (#70999)
+
+ * demos/testpixbuf-save.c (configure_cb): Fix a minor
+ memory management problem.
+
Fri Feb 8 20:24:58 2002 Owen Taylor <otaylor@redhat.com>
+Sat Feb 9 00:16:31 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image):
+ XCopyArea with subwindow_mode = IncludeInferiors.
+ (#70999)
+
+ * demos/testpixbuf-save.c (configure_cb): Fix a minor
+ memory management problem.
+
Fri Feb 8 20:24:58 2002 Owen Taylor <otaylor@redhat.com>
+Sat Feb 9 00:16:31 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image):
+ XCopyArea with subwindow_mode = IncludeInferiors.
+ (#70999)
+
+ * demos/testpixbuf-save.c (configure_cb): Fix a minor
+ memory management problem.
+
Fri Feb 8 20:24:58 2002 Owen Taylor <otaylor@redhat.com>
+Sat Feb 9 00:16:31 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image):
+ XCopyArea with subwindow_mode = IncludeInferiors.
+ (#70999)
+
+ * demos/testpixbuf-save.c (configure_cb): Fix a minor
+ memory management problem.
+
Fri Feb 8 20:24:58 2002 Owen Taylor <otaylor@redhat.com>
+Sat Feb 9 00:16:31 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image):
+ XCopyArea with subwindow_mode = IncludeInferiors.
+ (#70999)
+
+ * demos/testpixbuf-save.c (configure_cb): Fix a minor
+ memory management problem.
+
Fri Feb 8 20:24:58 2002 Owen Taylor <otaylor@redhat.com>
root = gdk_get_default_root_window ();
new_pixbuf = gdk_pixbuf_get_from_drawable (NULL, root, NULL,
0, 0, 0, 0, evt->width, evt->height);
- g_object_set_data (G_OBJECT (drawing_area), "pixbuf", new_pixbuf);
- g_object_unref (pixbuf);
+ g_object_set_data_full (G_OBJECT (drawing_area), "pixbuf", new_pixbuf,
+ (GDestroyNotify) g_object_unref);
}
return FALSE;
shm_pixmap = _gdk_x11_image_get_shm_pixmap (image);
if (shm_pixmap)
{
+ GC xgc;
+ XGCValues values;
+
/* Again easy, we can just XCopyArea, and don't have to worry about clipping
*/
- GC xgc = XCreateGC (impl->xdisplay, impl->xid, 0, NULL);
+ values.subwindow_mode = IncludeInferiors;
+ xgc = XCreateGC (impl->xdisplay, impl->xid, GCSubwindowMode, &values);
XCopyArea (impl->xdisplay, impl->xid, shm_pixmap, xgc,
src_x, src_y, width, height, dest_x, dest_y);